package org.mm.frame.support;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.mm.frame.web.form.Message;

public interface SupportHandler {

	public String prepareEntityUrl(String url, Long id, HttpServletRequest request);
	
	public Message retrieveCreateSuccessMessage(String key, Locale locale);
	
	public Message retrieveCreateErrorMessage(String key, Locale locale);
	
	public Message retrieveUpdateSuccessMessage(String key, Locale locale);
	
	public Message retrieveUpdateErrorMessage(String key, Locale locale);
	
	public Message retrieveGenericErrorMessage(String arg);
	
	public Message retrieveMessageByArgKey(String key, String argKey, Locale locale);
	
	public Message retrieveMessage(String key, Object[] args, Locale locale);
}
